import { http } from "@/utils/http";
import type { PaginationResponse } from "types";
import type { Customer, CustomerStatsItem } from "types/customer";

export const getCustomerPagination = (params: {
  page: number;
  page_size: number;
  kw?: string;
}) => {
  return http.request<PaginationResponse<Customer>>("get", "/customer", {
    params
  });
};

export const getCustomerStats = () => {
  return http.request<CustomerStatsItem[]>("get", "/customer/stats");
};
